package com.xxbb.chapter_3.dome2_takeMoney;

public class Programma {
    public static void main(String[] args) {
        CreditCard creditCard1 = new CreditCard("张三");//创建对象1
        creditCard1.printInfo();
        creditCard1.setMaxOverdraft(3000);
        creditCard1.deposit(2000);//存入2000
        creditCard1.withdraw(5000);
        creditCard1.printInfo();
        //取出2000
        creditCard1.withdraw(2000);
        creditCard1.printInfo();
    }
}
